package com.example.democrud.democurd;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

@SpringBootApplication(scanBasePackages = "com.example") //指定项目扫描不加也可以
@MapperScan(basePackages = "com.example.democrud.democurd.usermapper") //mapper 经常不自动加载故加了下
//@SpringBootApplication(exclude = DataSourceAutoConfiguration.class) //排除掉数据库自动加载
public class DemocurdApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemocurdApplication.class, args);
    }

}
